import pygtk
pygtk.require('2.0')

import gtk, gtk.glade

class SimpleTest:
	def __init__(self):
		self.xml = gtk.glade.XML('window.glade')
		self.window = self.xml.get_widget("main_window")

		if (self.window):
			self.window.connect("destroy", gtk.main_quit)

test = SimpleTest()
gtk.main()

